package com.it.blog.entity;

import java.util.Date;

/**
 * @Author: 羡羡
 * @Date: 2022/02/11/16:07
 */
public class ArticleTag {
    /**
     * ID
     */
    public int id;
    /**
     * 文章标题
     */
    public String articletitle;
    /**
     * 文章封面
     */
    public String articleimg;
    /**
     * 文章的内容
     */
    public String articlecontext;
    /**
     * 文章的类型
     */
    public String artypename;
    /**
     * 文章的标签ID
     */
    public int articlelableid;
    /**
     * 描述
     */
    public String describel;
    /**
     * 状态 1发布 0未发布
     */
    public int state;
    /**
     * 文章的访问数量
     */
    public int watchnumber;
    /**
     * 文章的创建时间
     */
    public Date createtime;

    ArticleLable articletag;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getArticletitle() {
        return articletitle;
    }

    public void setArticletitle(String articletitle) {
        this.articletitle = articletitle;
    }

    public String getArticleimg() {
        return articleimg;
    }

    public void setArticleimg(String articleimg) {
        this.articleimg = articleimg;
    }

    public String getArticlecontext() {
        return articlecontext;
    }

    public void setArticlecontext(String articlecontext) {
        this.articlecontext = articlecontext;
    }

    public String getArtypename() {
        return artypename;
    }

    public void setArtypename(String artypename) {
        this.artypename = artypename;
    }

    public int getArticlelableid() {
        return articlelableid;
    }

    public void setArticlelableid(int articlelableid) {
        this.articlelableid = articlelableid;
    }

    public String getdescribel() {
        return describel;
    }

    public void setdescribel(String describel) {
        this.describel = describel;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getWatchnumber() {
        return watchnumber;
    }

    public void setWatchnumber(int watchnumber) {
        this.watchnumber = watchnumber;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public ArticleLable getArticletag() {
        return articletag;
    }

    public void setArticletag(ArticleLable articletag) {
        this.articletag = articletag;
    }

    public ArticleTag() {
    }

    public ArticleTag(String articletitle, String articleimg, String articlecontext, String artypename, int articlelableid, String describel, int state, int watchnumber, Date createtime, ArticleLable articletag) {
        this.articletitle = articletitle;
        this.articleimg = articleimg;
        this.articlecontext = articlecontext;
        this.artypename = artypename;
        this.articlelableid = articlelableid;
        this.describel = describel;
        this.state = state;
        this.watchnumber = watchnumber;
        this.createtime = createtime;
        this.articletag = articletag;
    }

    public ArticleTag(int id, String articletitle, String articleimg, String articlecontext, String artypename, int articlelableid, String describel, int state, int watchnumber, Date createtime, ArticleLable articletag) {
        this.id = id;
        this.articletitle = articletitle;
        this.articleimg = articleimg;
        this.articlecontext = articlecontext;
        this.artypename = artypename;
        this.articlelableid = articlelableid;
        this.describel = describel;
        this.state = state;
        this.watchnumber = watchnumber;
        this.createtime = createtime;
        this.articletag = articletag;
    }

    @Override
    public String toString() {
        return "\nArticleTag{" +
                "id=" + id +
                ", articletitle='" + articletitle + '\'' +
                ", articleimg='" + articleimg + '\'' +
                ", articlecontext='" + articlecontext + '\'' +
                ", artypename='" + artypename + '\'' +
                ", articlelableid=" + articlelableid +
                ", describel='" + describel + '\'' +
                ", state=" + state +
                ", watchnumber=" + watchnumber +
                ", createtime=" + createtime +
                ", articletag=" + articletag +
                '}';
    }
}
